<template>
    <view>
        <view class="fullMask" :class="showMask ? 'isbgFff' :'' "></view>
        <view class="home-holder">
            <view class='hold-img-box'>
                <view class="loader-wrapper" :style="'color:'+themeJson.color">
                    <view class="logo">
                        <!-- <text>加载中...</text> -->

                        <view class="loadBox">
                            <!-- <image src="../../static/images/nav/xie.png" mode="widthFix" lazy-load="false"/> -->
                            <!-- <image src="../../static/images/xie.gif" mode="widthFix" lazy-load="false"/> -->
                            <image src="/static/images/nav/xie.png" mode="widthFix" lazy-load="false"/>
                            <view class="loadText">
                                <text class="dottod">
                                  ·  ·  ·  ·  ·  ·  · 
                                </text>
                            </view>
                              

                          
                              
                        </view>
                    </view>
                
                </view>
            </view>
        </view>
    </view>
</template>

<script>
export default {
    props: {
        showMask: {
            type: Boolean,
            default: true
        }
    },
    computed: {
     
    },
    components: {},
    data () {
        return {
            themeJson:{
                color:'#ff2d46'
            }
        }
    },

    onShow () {

    },
    onLoad () {

    },
    methods: {

    }
}
</script>

<style>
/* loading框样式 start*/
.fullMask {
    background-color: transparent;
    position: fixed;
    z-index: 210;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}
.fullMask.isbgFff {
    background: #ffffff;
    opacity: 1;
}
.home-holder {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 220;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}
.hold-img-box {
    position: relative;
    width: 70px;
    text-align: center;
    border-radius: 6px;
    line-height: 1;
    /* background:#ffffff; */
    overflow: hidden;
    padding: 2px;
}

.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    /* background: url("./img/loading-red.png") center center no-repeat; */
    background-size: 100% 100%;
}


.loader-wrapper .logo {
    position: absolute;
    display: block;
    left: 50%;
    top: 40%;
    /* width: 60px;
    height: 60px; */
    transform: translate(-50%,-50%);
    border-radius: 50%;
    /* background: currentColor; */
    text-align: center;
    line-height: 60px;
   
}
/* .loader-wrapper .logo image {
    width: 100rpx;
    height: 100rpx;
   
} */
.loadBox{
    display: inline-block;
    /* animation: shake 2s infinite; */
    position: relative;
    line-height: 2;
    font-size: 0;
}
.loadText{
    width: 100rpx;
    overflow: hidden;
    /* background: #eaeaea; */
}
.dottod{
    display: block;
    color: #ff2d46;
    font-size: 36rpx;
    line-height: 2;
    width: 0%;
    animation: shake 1s infinite;
    overflow: hidden;
    white-space: nowrap;
}

@keyframes shake{
    0% {  width: 0%; }
    /* 50% {  width: 50%; } */
    100% {  width: 100%;}
}

.loader-wrapper .logo span {
    color: #ffffff;
    font-weight: 600;
    font-size: 60px;
    font-family: fangsong;
}

.loader-wrapper .logo {
    /* border-radius: 50%; */
    /* overflow: hidden; */
    text-align: center;
    font-size: 28rpx;
    color: currentColor;
    /* background-color: currentColor; */
}

.loader-wrapper .logo img {
    width: 90%;
    vertical-align: middle;
}
/* loading框样式 end*/
</style>
